package com.wanxi.domain.entity;

import com.wanxi.domain.dto.OrderStatus;
import com.wanxi.util.GetTimeNow;
import lombok.Data;

/**
 * @Author LiuYuRong
 * @Date 2021/12/25 9:41
 * @Version 1.0
 * @Description
 */
@Data

public class Order {
    private long id;
    private int status;
    private String create_time;
    private String pay_time;
    private String send_time;
    private String get_time;
    private String amount;
    private long shop_id;
    private long user_id;
    private long coupon_id;
    private String receiving_address;
    private String phone;
    private int pay_channel;
//    order_all的Id
    private long order_all;
    private String update_time;
    private String create_user;
    private int is_delete;


    public Order myclone(){
        Order orderE=new Order();
        orderE.setUser_id(user_id);
        orderE.setCoupon_id(coupon_id);
        orderE.setReceiving_address(receiving_address);
        orderE.setPhone(phone);
//        下单只能设置状态为0
        orderE.setStatus(status);
        orderE.setCreate_time(create_time);
        orderE.setUpdate_time(get_time);
        orderE.setCreate_user(String.valueOf(user_id));
        return orderE;
    }

}
